<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>班级列表</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<link rel="stylesheet" type="text/css" href="css/main.css" />
  </head>
  
  <body>
  	<%@ include file="header.jsp" %>
    
    <DIV id=tips>
		<P class=tips_left>
			您的位置：<A>首页</A> 
			&gt;&gt; <A>班级管理</A>
			&gt;&gt; <A>班级列表</A>
		</P>
	</DIV>
		
	<DIV id=container>
		<DIV id=list_left>
			<%@ include file="left_banji.jsp" %>
		</DIV>
		<DIV id=list_right>
			<DIV id=subnav>
				<UL class=subnav_ul1></UL>
				<UL class=subnav_ul2>
					<DIV class=subnav_t>
						<P class=subnav_tl>班级列表</P>
  						<P class=subnav_tr></P>
  					</DIV>
  					<DIV class=subnav_nr>
  						<table width="700" align="center" border="0" cellpadding="0" cellspacing="0">
							<tr>
						        <td class="col_name" width="20%">班级名称</td>
								<td class="col_name" width="25%">班级添加时间</td>
								<td class="col_name" width="25%">最近修改时间</td>
						        <td class="col_name" width="30%">操作</td>
						    </tr>
						    <c:forEach items="${banjiList}" var="banji">
							<tr>
						        <td class="col_content"><a href="teacher/showBanjiInfo.html?banjiID=${banji.id}">${banji.name}</a></td>
								<td class="col_content">
									<fmt:formatDate value="${banji.cst_create}" pattern="yyyy-MM-dd HH:mm:ss" />
								</td>
								<td class="col_content">
									<fmt:formatDate value="${banji.cst_modify}" pattern="yyyy-MM-dd HH:mm:ss" />
								</td>
								<td class="col_content">
									<a href="teacher/deleteTeacher.html?teacherID=${teacher.id}">删除()</a>
									<a href="teacher/editBanjiInfo.html?banjiID=${banji.id}">修改</a>
									<a href="teacher/showStudentListForBanji.html?banjiID=${banji.id}">查看班级学生</a>
						        </td>
							</tr>
							</c:forEach>
						  </table>
					</DIV>
				</UL>
				<UL class=subnav_ul3></UL>
			</DIV>
		</DIV>
	</DIV>

    <%@ include file="../footer.jsp" %>
  </body>
</html>
